package com.losdun.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.losdun.common.annotation.Excel;
import com.losdun.common.core.domain.BaseEntity;

/**
 * 产品配件对象 prod_parts
 * 
 * @author sword.ye
 * @date 2025-03-02
 */
public class Parts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;



    private Long configId;

    /** 配件编码规则: AC-年份-序列号 */
    @Excel(name = "配件编码:")
    private String partCode;

    /** 配件名称 */
    @Excel(name = "配件名称")
    private String partName;

    /** 单位: 元 */
    @Excel(name = "单位: 元")
    private Integer price;
    /**单位*/
    private String unit;

    private String imageUrl;

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getConfigId() {
        return configId;
    }

    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPartCode(String partCode) 
    {
        this.partCode = partCode;
    }

    public String getPartCode() 
    {
        return partCode;
    }
    public void setPartName(String partName) 
    {
        this.partName = partName;
    }

    public String getPartName() 
    {
        return partName;
    }
    public void setPrice(Integer price) 
    {
        this.price = price;
    }

    public Integer getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("partCode", getPartCode())
            .append("partName", getPartName())
            .append("remark", getRemark())
            .append("price", getPrice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
